<?php  
include_once('../../../../../wp-config.php');
$scope = 'snsapi_login';
$appid =io_get_option('open_wechat_key')['appid'];
$login = new ioLoginWechat();
$login->login($appid,$scope,get_template_directory_uri().'/inc/auth/wechat-callback.php');
?>